package com.rainwood.water_authority.http.response;
import com.google.gson.annotations.SerializedName;

import java.util.List;
/**
 * @author sxs
 * @date :2020/10/29
 * @desc: 盘点详情
 */
public final class InventoryDetailBean {


    /**
     * code : 0
     * warn : success
     * data : {"checkId":"ikxu7rlmiez8","checkNum":"PD16037913407257","month":"2020-07","type":"月度","goods":[{"goodsId":"n5ltsvxh8un9","number":"TX-0022","name":"物资名称","speciModel":"规格型号","unit":"米","nowKuNum":"103"}]}
     */
    @SerializedName("code")
    private Integer code;
    @SerializedName("warn")
    private String warn;
    @SerializedName("data")
    private DataDTO data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getWarn() {
        return warn;
    }

    public void setWarn(String warn) {
        this.warn = warn;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        /**
         * checkId : ikxu7rlmiez8
         * checkNum : PD16037913407257
         * month : 2020-07
         * type : 月度
         * goods : [{"goodsId":"n5ltsvxh8un9","number":"TX-0022","name":"物资名称","speciModel":"规格型号","unit":"米","nowKuNum":"103"}]
         */

        @SerializedName("checkId")
        private String checkId;
        @SerializedName("checkNum")
        private String checkNum;
        @SerializedName("month")
        private String month;
        @SerializedName("type")
        private String type;
        @SerializedName("goods")
        private List<GoodsDTO> goods;

        public String getCheckId() {
            return checkId;
        }

        public void setCheckId(String checkId) {
            this.checkId = checkId;
        }

        public String getCheckNum() {
            return checkNum;
        }

        public void setCheckNum(String checkNum) {
            this.checkNum = checkNum;
        }

        public String getMonth() {
            return month;
        }

        public void setMonth(String month) {
            this.month = month;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public List<GoodsDTO> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsDTO> goods) {
            this.goods = goods;
        }

        public static class GoodsDTO {
            /**
             * goodsId : n5ltsvxh8un9
             * number : TX-0022
             * name : 物资名称
             * speciModel : 规格型号
             * unit : 米
             * nowKuNum : 103
             */

            @SerializedName("goodsId")
            private String goodsId;
            @SerializedName("number")
            private String number;
            @SerializedName("name")
            private String name;
            @SerializedName("speciModel")
            private String speciModel;
            @SerializedName("unit")
            private String unit;
            @SerializedName("nowKuNum")
            private Integer nowKuNum;

            public String getGoodsId() {
                return goodsId;
            }

            public void setGoodsId(String goodsId) {
                this.goodsId = goodsId;
            }

            public String getNumber() {
                return number;
            }

            public void setNumber(String number) {
                this.number = number;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getSpeciModel() {
                return speciModel;
            }

            public void setSpeciModel(String speciModel) {
                this.speciModel = speciModel;
            }

            public String getUnit() {
                return unit;
            }

            public void setUnit(String unit) {
                this.unit = unit;
            }

            public Integer getNowKuNum() {
                return nowKuNum;
            }

            public void setNowKuNum(Integer nowKuNum) {
                this.nowKuNum = nowKuNum;
            }
        }
    }
}
